package com.ruoyi.loans.feign;

import com.ruoyi.loans.pojo.Result;
import com.ruoyi.repay.domain.RepaymentDetails;
import com.ruoyi.repay.domain.RepaymentSchedule;
import com.ruoyi.repay.domain.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("ruoyi-repay")
public interface RepaymentFeign {

    @PostMapping("/repay/save")
    public ResultVo addrepaymentschedule(@RequestBody RepaymentSchedule repaymentSchedule);

    @RequestMapping("/repay/addrepaymentDetails")
    public ResultVo addrepaymentDetails(@RequestBody RepaymentDetails repaymentDetails);
}
